package com.njpi.stu.attendance.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 考勤表
 * </p>
 *
 * @author pxl
 * @since 2019-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lab_check_work")
public class CheckWork implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 考勤ID
     */
    @TableId(value = "check_id", type = IdType.AUTO)
    private Long checkId;

    /**
     * 老师ID
     */
    private Long userId;

    /**
     * 老师名称
     */
    private String userName;

    /**
     * 课程id
     */
    private String courseName;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 删除状态[0:停用, 1:启用]
     */
    private Integer state;

    /**
     * 考勤开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "Asia/Shanghai")
    private Date timeStart;

    /**
     * 考勤结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "Asia/Shanghai")
    private Date timeEnd;

    /**
     * 考勤验证码
     */
    private String verCode;


    /**
     * 学院名字
     */
    private String departmentName;


    /**
     * 班级名字
     */
    private String className;
}
